package cn.iocoder.yudao.module.wms.controller.admin.distribution.vo;

import cn.iocoder.yudao.module.wms.enums.RegConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 配送新增/修改 Request VO")
@Data
public class DistributionSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27549")
    private String id;

    @NotBlank(message = "驾驶员不能为空")
    @Schema(description = "驾驶员id", example = "19913")
    private String did;

    @NotBlank(message = "车辆不能为空")
    @Schema(description = "车辆id", example = "827")
    private String vid;

    @NotBlank(message = "送达时间不能为空")
    @Schema(description = "预计送达时间")
    private String time;

    @Schema(description = "加急处理true/false", requiredMode = Schema.RequiredMode.REQUIRED)
    private Boolean urgent;

    @Schema(description = "注意事项")
    private String care;

    @Pattern(regexp = RegConstants.PHONE_REG, message = "电话格式不正确")
    @NotBlank(message = "客户电话不能为空")
    @Schema(description = "客户电话")
    private String phone;

    @NotBlank(message = "客户地址不能为空")
    @Schema(description = "客户地址")
    private String address;
}